package com.allm.ai.starter;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.web.bind.annotation.RestController;

/**
 * 智能助手平台启动类   
 */
@SpringBootApplication
@ComponentScan(basePackages = {
        "com.allm.*"
})
@EntityScan(basePackages = {
        "com.allm.ai.base.entity",
        "com.allm.ai.knowledge.model",
        "com.allm.ai.common.entity"  // 添加common.entity包
})
@EnableJpaRepositories(basePackages = {
        "com.allm.ai.base.repository",
        "com.allm.ai.knowledge.repository",
        "com.allm.ai.common.repository"  // 添加common.repository包
})
@RestController
public class AllmAiApplication {

    public static void main(String[] args) {
        SpringApplication.run(AllmAiApplication.class, args);
    }
}